import request from "@/api/request/base-axios";

// 登录接口
function login(data){
    return request({
        url:'/user/login',
        method:'POST',
        data
    })
}
//注册
function register(data){
    return request({
        url:'/reg/createAccount',
        method:"POST",
        data
    })
}

//获取验证码
function getCode(phone){
    return request({
        url:"/reg/sendmsg",
        method:"POST",
        data:{
            phone
        }
    })
}

//  获取用户信息
function getBasicInfo(){
    return request({
        url:"/home/getBasicInfo"
    })
}



export default {
    login,getCode,register,getBasicInfo
}
